﻿<Window x:Class="ConverterSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:viewmodel="clr-namespace:ConverterSample"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <viewmodel:ImageToBitmapSourceConverter x:Key="ImageToBitmapSourceConverter" />
    </Window.Resources>
    <Window.DataContext>
        <viewmodel:ViewModel/>
    </Window.DataContext>
    <StackPanel>
        <Menu Height="30" IsMainMenu="True">
            <MenuItem Header="File" Command="{Binding FileCommand}"/>
        </Menu>
        <Image Source="{Binding SourceImage, Converter={StaticResource ImageToBitmapSourceConverter}}" />
    </StackPanel>
</Window>
